﻿namespace System;
/// <inheritdoc/>
public class AndSpecification<T> : CompositeSpecification<T>
{
    #region Ctor
    /// <inheritdoc/>
    public AndSpecification(ISpecification<T> left, ISpecification<T> right) : base(left, right) { }
    #endregion
    #region Public Methods
    /// <inheritdoc/>
    public override Expression<Func<T, bool>> GetExpression()
        => Left.GetExpression().And(Right.GetExpression());
    #endregion
}
